//
//  NotificationFactory.m
//  NotificationMe
//
//  Created by max on 2018/12/16.
//  Copyright © 2018年 dayang. All rights reserved.
//

#import "NotificationFactory.h"
#import "NMNotificationRequestTime.h"
#import "NMNotificationRequestLocation.h"
#import "NMNotificationRequestCalendar.h"

@implementation NotificationFactory

+ (UNNotificationRequest *)requestWithType:(NotificationType)type content:(NSDictionary *)content {
    switch (type) {
        case NotificationTypeTime:return [NMNotificationRequestTime requestWithContent:content];
        case NotificationTypeLocation:return [NMNotificationRequestLocation requestWithContent:content];
        case NotificationTypeCalendar:return [NMNotificationRequestCalendar requestWithContent:content];
    }
}

@end
